﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Management.Core.SliceQuality
{
    public class SliceQuality
    {
        [Key]
        public int SliceQualityID { get; set; }

        [Required(ErrorMessage="必填")]
        [Display(Name="单据号")]
        public int DocNum { get; set; }
        
        [Required(ErrorMessage = "必填")]
        [Display(Name = "硅片质量编号")]
        public int WaterQualityID { get; set; }

        [Required(ErrorMessage = "必填")]
        [Display(Name = "数量")]
        public int Number { get; set; }

        [Display(Name = "创建时间")]
        public DateTime Created_at { get; set; }

        [Display(Name = "修改时间")]
        public DateTime Updated_at { get; set; }

        public virtual WaterQuality.WaterQuality WaterQuality { get; set; }
    }
}
